-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement] [ccr] add support for restore to ccr #45162
base: master
Are you sure you want to change the base?
Conversation
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
8091a1b
to
f780009
Compare
clang-tidy review says "All clean, LGTM! 👍" |
f780009
to
4b91bfe
Compare
clang-tidy review says "All clean, LGTM! 👍" |
run buildall |
4b91bfe
to
5e011f0
Compare
clang-tidy review says "All clean, LGTM! 👍" |
run buildall |
run p0 |
@@ -1693,8 +1694,13 @@ public void logAlterRepository(Repository repo) { | |||
logEdit(OperationType.OP_ALTER_REPOSITORY, repo); | |||
} | |||
|
|||
public void logRestoreJob(RestoreJob job) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doris' editlog has a replay process, and the specific steps are in EditLog.loadJournal. Both the log phase and the replay phase need to add the binlog to the binlog manager. If a RestoreBinLogInfo is temporarily created in the log phase, then it will not be possible to construct RestoreBinLogInfo in the replay phase.
import java.util.Map; | ||
import java.util.stream.Collectors; | ||
|
||
public class RestoreBinLogInfo { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider keeping consistent with the existing word Binlog
.
5e011f0
to
68d13d2
Compare
clang-tidy review says "All clean, LGTM! 👍" |
What problem does this PR solve?
Issue Number: close #43557
Related PR: #303
Problem Summary:
add support for restore to ccr
adding binlog for restore only if after restore is finished.
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)